package com.hxkj.domain.po;

import java.io.Serializable;
import java.util.List;
import java.util.Objects;

/**
* 
*
* @author: chenwei
* @version: 1.0
* @datetime: 2018-06-05 19:32:55
*/
public class Tags  implements Serializable {


    private static final long serialVersionUID = 9019750580641776135L;
    // tags标签ID
    private Long tagsId;
    // tags标签名字
    private String tagsName;
    // tags标签属性
    private String tagsType;
    // 创建时间
    private Long createTime;
    // 修改时间
    private Long updateTime;
    // 标识
    private Byte delTag;
    // 标签被引用次数
    private Integer quoteCount;
    // 备注
    private String comment;
    //站点ID
    private Long siteId;
    //标签分类ID
    private Long tagsClassifyId;
    //关键字模糊查询
    private String keyword;
    // 标签分类名称
    private String classifyName;
    // tags标签ID字符串
    private String tagsIds;
    //静态资源路径
    private String manuscriptPath;

    private List<Article> articleList;

    //取文章标题字节长度
    private Integer titleLen;
    //取文章数据条数
    private Integer count;
    //取文章排序条件
    private String sortkey;
    //取文章排序方式
    private String sort;
    //比较符
    private String compare;

    /**
     * 进度条相关
     * 保存redis计数器
     */
    private String socketKey;

    public String getSocketKey() {
        return socketKey;
    }

    public void setSocketKey(String socketKey) {
        this.socketKey = socketKey;
    }

    public Integer getTitleLen() {
        return titleLen;
    }

    public void setTitleLen(Integer titleLen) {
        this.titleLen = titleLen;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public String getSortkey() {
        return sortkey;
    }

    public void setSortkey(String sortkey) {
        this.sortkey = sortkey;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public String getCompare() {
        return compare;
    }

    public void setCompare(String compare) {
        this.compare = compare;
    }

    public String getTagsName() {
    return tagsName;
    }

    public void setTagsName(String tagsName) {
    this.tagsName = tagsName;
    }

    public String getTagsType() {
    return tagsType;
    }

    public void setTagsType(String tagsType) {
    this.tagsType = tagsType;
    }

    public Long getCreateTime() {
    return createTime;
    }

    public void setCreateTime(Long createTime) {
    this.createTime = createTime;
    }

    public Long getUpdateTime() {
    return updateTime;
    }

    public void setUpdateTime(Long updateTime) {
    this.updateTime = updateTime;
    }

    public Byte getDelTag() {
    return delTag;
    }

    public void setDelTag(Byte delTag) {
    this.delTag = delTag;
    }

    public Integer getQuoteCount() {
    return quoteCount;
    }

    public void setQuoteCount(Integer quoteCount) {
    this.quoteCount = quoteCount;
    }

    public String getComment() {
    return comment;
    }

    public void setComment(String comment) {
    this.comment = comment;
    }

    public Long getTagsId() {
    return tagsId;
    }

    public void setTagsId(Long tagsId) {
    this.tagsId = tagsId;
    }

    public Long getSiteId() {
        return siteId;
    }

    public void setSiteId(Long siteId) {
        this.siteId = siteId;
    }

    public Long getTagsClassifyId() {
        return tagsClassifyId;
    }

    public void setTagsClassifyId(Long tagsClassifyId) {
        this.tagsClassifyId = tagsClassifyId;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public String getClassifyName() {
        return classifyName;
    }

    public void setClassifyName(String classifyName) {
        this.classifyName = classifyName;
    }

    public String getTagsIds() {
        return tagsIds;
    }

    public void setTagsIds(String tagsIds) {
        this.tagsIds = tagsIds;
    }

    public String getManuscriptPath() {
        return manuscriptPath;
    }

    public void setManuscriptPath(String manuscriptPath) {
        this.manuscriptPath = manuscriptPath;
    }

    public List<Article> getArticleList() {
        return articleList;
    }

    public void setArticleList(List<Article> articleList) {
        this.articleList = articleList;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof Tags)) return false;
        Tags tags = (Tags) o;
        return Objects.equals(getTagsId(), tags.getTagsId()) &&
                Objects.equals(getTagsName(), tags.getTagsName()) &&
                Objects.equals(getTagsType(), tags.getTagsType()) &&
                Objects.equals(getCreateTime(), tags.getCreateTime()) &&
                Objects.equals(getUpdateTime(), tags.getUpdateTime()) &&
                Objects.equals(getDelTag(), tags.getDelTag()) &&
                Objects.equals(getQuoteCount(), tags.getQuoteCount()) &&
                Objects.equals(getComment(), tags.getComment()) &&
                Objects.equals(getSiteId(), tags.getSiteId()) &&
                Objects.equals(getTagsClassifyId(), tags.getTagsClassifyId()) &&
                Objects.equals(getKeyword(), tags.getKeyword()) &&
                Objects.equals(getClassifyName(), tags.getClassifyName()) &&
                Objects.equals(getTagsIds(), tags.getTagsIds()) &&
                Objects.equals(getManuscriptPath(), tags.getManuscriptPath()) &&
                Objects.equals(getArticleList(), tags.getArticleList()) &&
                Objects.equals(getTitleLen(), tags.getTitleLen()) &&
                Objects.equals(getCount(), tags.getCount()) &&
                Objects.equals(getSortkey(), tags.getSortkey()) &&
                Objects.equals(getSort(), tags.getSort()) &&
                Objects.equals(getCompare(), tags.getCompare()) &&
                Objects.equals(getSocketKey(), tags.getSocketKey());
    }

    @Override
    public int hashCode() {

        return Objects.hash(getTagsId(), getTagsName(), getTagsType(), getCreateTime(), getUpdateTime(), getDelTag(), getQuoteCount(), getComment(), getSiteId(), getTagsClassifyId(), getKeyword(), getClassifyName(), getTagsIds(), getManuscriptPath(), getArticleList(), getTitleLen(), getCount(), getSortkey(), getSort(), getCompare(), getSocketKey());
    }

    @Override
    public String toString() {
        return "Tags{" +
                "tagsId=" + tagsId +
                ", tagsName='" + tagsName + '\'' +
                ", tagsType='" + tagsType + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", delTag=" + delTag +
                ", quoteCount=" + quoteCount +
                ", comment='" + comment + '\'' +
                ", siteId=" + siteId +
                ", tagsClassifyId=" + tagsClassifyId +
                ", keyword='" + keyword + '\'' +
                ", classifyName='" + classifyName + '\'' +
                ", tagsIds='" + tagsIds + '\'' +
                ", manuscriptPath='" + manuscriptPath + '\'' +
                ", articleList=" + articleList +
                ", titleLen=" + titleLen +
                ", count=" + count +
                ", sortkey='" + sortkey + '\'' +
                ", sort='" + sort + '\'' +
                ", compare='" + compare + '\'' +
                ", socketKey='" + socketKey + '\'' +
                '}';
    }
}
